#ifndef VREPCONFIGVIEW_H
#define VREPCONFIGVIEW_H

#include <QWidget>
#include "vrepconfigview_global.h"


namespace Ui {
class VrepConfigView;
}


class VREPCONFIGVIEWSHARED_EXPORT VrepConfigView : public QWidget
{
    Q_OBJECT

public:
    explicit VrepConfigView(QWidget *parent = 0);
    ~VrepConfigView();


signals:
    /**
     * @brief connectVrep				连接vrep
     * @return
     */
    int signal_connectVrep(QString ip,int port);

    /**
     * @brief disconnectVrep			断开连接vrep
     * @return
     */
    int signal_disconnectVrep();

    /**
     * @brief setVrepServoType			设置vrep伺服模式
     * @return
     */
    int signal_setVrepServoType(int type);

    /**
     * @brief setVrepIoType				设置vrep IO模式
     * @return
     */
    int signal_setVrepIoType(int type);

private slots:
    void on_pushButton_StartVrep_toggled(bool checked);
    void on_comboBox_io_mode_currentIndexChanged(int index);
    void on_comboBox_motor_mode_currentIndexChanged(int index);

    void on_pushButton_StartVrep_2_clicked();

private:
    Ui::VrepConfigView *ui;
};

#endif // VREPCONFIGVIEW_H
